package com.lee.ssm.service;

import com.lee.ssm.domain.Role;

import java.util.List;

public interface IRoleService {
    List<Role> findAll() throws Exception;

    void save(Role role) throws Exception;

    Role findById(String id) throws Exception;

    void deleteRole(String id) throws Exception;


    List<Role> findByUserId(String userId) throws Exception;

    List<Role> findOthersRoleByUserId(String id) throws Exception;

    void addPermissionToRole(String roleId, String[] permissionId)throws Exception;
}
